<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主后台登录</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.css"></link>
    <script type="text/javascript" src="__PUBLIC__/js/jquery-2.2.0.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
    <style type="text/css" rel="stylesheet">
        @charset "utf-8";
        /* CSS Document */
        body,html{font-size:12px; overflow-x:hidden; margin:0px; padding:0px;font-family:"Microsoft YaHei",微软雅黑,STHeiti;color:#333; line-height:24px;}
        body{ overflow:hidden;}
        img{border:none;}
        .clear{clear:both;}

        .signwarp{width:100%; height:100%;}
        .sign_box{background:url(__PUBLIC__/img/login/de_bg.jpg) no-repeat; width:711px; height:427px; position:absolute; top:50%; margin-top:-213.5px; left:50%; margin-left:-355.5px;}
        .sign_main{width:45%; float:right; margin-top:25px}
        .sign_main h4{font-size:22px; width:80%; text-align:center; color:#299bca;font-weight:bold;}
        .sign_txt{margin-top:45px;}
        .sign_inp{width:80%; border-bottom:1px solid #ccc; margin-bottom:25px;height:32px;}
        .sign_ico{background:url(__PUBLIC__/img/login/sig01.png) no-repeat top left; height:18px; width:18px; margin-top:4px; float:left; margin-right:10px;}
        .input1{outline:none; border:none; background-color:inherit; color:#aaa; font-size:16px; width:85%; padding-right:8px; line-height:22px;}
        .sign_ico2{background:url(__PUBLIC__/img/login/sig02.png) no-repeat top left; height:18px; width:18px; float:left; margin-right:10px; margin-top:4px;}
        .sign_ico3{background:url(__PUBLIC__/img/login/sig03.png) no-repeat top left; height:18px; width:18px; margin-top:4px; float:left; margin-right:10px;}
        .input3{outline:none; border:none; background-color:inherit; color:#aaa; font-size:16px; width:45%; padding-right:8px; line-height:22px;}
        .sign_img{float:right;}
        .sign_button{width:80%; height:36px; line-height:36px; text-align:center; color:#fff; font-size:16px; background:#299bca; border-radius:32px; border:none; outline:none; margin-top:15px}
    </style>
</head>
<body style="overflow: hidden;">
<div class="signwarp">
    <div class="sign_box">
        <div class="sign_main">
            <h4>天众云仓-总管理后台</h4>
            <div class="sign_txt">
                <div class="sign_inp">
                    <span class="sign_ico"></span>
                    <input class="input1" type="text" name="username" onkeydown="KeyDown()" placeholder="请输入账号">
                </div>

                <div class="sign_inp">
                    <span class="sign_ico2"></span>
                    <input class="input1" type="password" name="password" onkeydown="KeyDown()" placeholder="请输入密码">
                </div>

                <div class="sign_inp">
                    <span class="sign_ico3"></span>
                    <input class="input3" type="text" name="verify" onkeydown="KeyDown()" placeholder="请输入验证码">
                    <span class="sign_img" style="margin-top:-15px;"><img id="verify" style="float: left;" src="./verify" onclick="javascript:this.src='./verify/'+Math.random();"></span>
                    <div class="clear"></div>
                </div>

                <button class="sign_button">登录</button>

            </div>
        </div>
    </div>
</div>
</body>
<script>
	function KeyDown()
	{
	  if (event.keyCode == 13)
	  {
	    $("button").click();
	  }
	}
    $("button").click(function (){
        $.post('__MODULE__/Reg/loginD',{
            username:$("input[name=username]").val(),
            password:$("input[name=password]").val(),
            verify:$("input[name=verify]").val(),
        },function(msg){
            $("#verify").prop('src','__CONTROLLER__/verify/'+Math.random());
            layer.msg(msg.data);
            if(msg.flag==1){
                setTimeout(function (){
                    location.href='__MODULE__/index';
                },800);
            }
        },'json');
    });
</script>
</html>